package com.example.demo.service;

import com.example.demo.entity.PurchaseHistoryEntity;
import com.example.demo.vo.PurchaseHistoryVo;

import java.util.List;

public interface PurchaseHistoryService {
    List<PurchaseHistoryEntity> getUserPurchaseHistory(int user_id);
    PurchaseHistoryEntity getPurchaseHistoryById(int id);
    int addPurchaseHistory(PurchaseHistoryVo purchaseHistoryVo);
    int deletePurchaseHistory(int id);
    int updatePurchaseHistory(PurchaseHistoryVo purchaseHistoryVo);
    List<PurchaseHistoryEntity> getAllPurchaseHistories();
}